<?php

/**
 * Promotion form.
 *
 * @package    academia_de_escritores
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PromotionForm extends BasePromotionForm
{
  public function configure()
  {
    unset(
      $this['created_at'], $this['updated_at'], $this['slug']
    );
    $this->widgetSchema['file_uploads_list'] = new sfWidgetFormDoctrineChoice(array('multiple' => false, 'model' => 'FileUpload',"renderer_class"=>"sfWidgetFormInputSelectWithImg","method"=>"getDataJSON"));
    $this->widgetSchema->setLabels(array(
            'name' => 'Nombre',
            'content' => 'Contenido',
            'file_uploads_list' => 'Lista de Archivos Cargados'
            ));
  }
}
